<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!--css-->
    <link rel="stylesheet" href="plugins/elementui/index.css">
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        .el-header {
            background-color: #B3C0D1;
            color: #333;
            line-height: 60px;
        }

        .el-aside {
            color: #333;
            height: 700px;
        }

    </style>
</head>
<body>
<div id="app">
    <!--整体架构-->
    <el-container style="height: 500px; border: 1px solid #eee">
        <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
            <el-menu
                    background-color="#545c64"
                    text-color="#fff"
                    active-text-color="#ffd04b"
                    :default-openeds="['1']" >
                <el-submenu index="1">
                    <template slot="title"><i class="el-icon-message"></i>班级管理</template>
                    <el-menu-item-group>
<!--                        <template slot="title">分组一</template>-->
                        <el-menu-item index="1-1" @click="urlBtn('3.功能页面.html')">学生信息管理</el-menu-item>
                        <el-menu-item index="1-2" @click="urlBtn('4.条件渲染.html')">教室管理</el-menu-item>
                    </el-menu-item-group>

                </el-submenu>
                <el-submenu index="2">
                    <template slot="title"><i class="el-icon-menu"></i>考试管理</template>
                    <el-menu-item-group>
<!--                        <template slot="title">内容</template>-->
                        <el-menu-item index="2-1">试卷</el-menu-item>
                        <el-menu-item index="2-2">成绩</el-menu-item>
                    </el-menu-item-group>

                </el-submenu>

            </el-menu>
        </el-aside>

        <el-container style="height: 700px" >
            <el-header style="text-align: right; font-size: 12px">
                <el-dropdown>
                    <i class="el-icon-setting" style="margin-right: 15px"></i>
                    <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item>查看</el-dropdown-item>
                        <el-dropdown-item>新增</el-dropdown-item>
                        <el-dropdown-item>删除</el-dropdown-item>
                    </el-dropdown-menu>
                </el-dropdown>
                <span>王小虎</span>
            </el-header>

            <el-main style="height: 700px; overflow: hidden">
                   <!--根据点击的菜单显示不同的页面-->
                   <iframe :src="url" height="650px" width="1330px" frameborder="0"></iframe>
            </el-main>
        </el-container>
    </el-container>



</div>

</body>
<!--js-->
<script src="js/vue.js"></script>
<script src="plugins/elementui/index.js"></script>
<script>
    new Vue({
        el:'#app',
        data(){
            return{
                url:'5.列表渲染.html'

            }
        },
        methods:{
            urlBtn(ur){
                this.url=ur;

            }
        }
    });
</script>


</html>